﻿using System.Collections.Generic;
using Hicap.AuthorizationServer.Core.Models;

namespace Hicap.AuthorizationServer.Core
{
    public class AuthorizationServerConsts
    {
        public const string LocalizationSourceName = "AuthorizationServer";
        public const string ConnectionStringName = "Default";
        public const string DefaultPassPhrase = "WA381Z$7tv2AE";
        public const string DefaultTenantCode = "Hicap";
        public const string AdminUserCode = "InitUser";
        public const string AdminUserName = "初始用户";
        public const string AdminRoleCode = "InitRole";
        public const string AdminRoleName = "初始角色";
        public const string SysName = "Hicap.AuthorizationServer";
        public const string DefaultPassword = "123qwe";
        public const int TokenLifetime = 7200;
        public const bool IgnoreCheckPermission = false;

        public static readonly List<string> ApiResourceNameList = new List<string>()
        {
            "Hicap.Application",
            "Hicap.QRCodeWarehouse"
        };

        public static readonly List<string> TokenSecurityKey = new List<string>()
        {
            "HicapApplication_DF64402325E34B398F0A8ED1CCEA65AE",
            "HicapWarehouse_E08E7234348440818F404FC51DAE613A"
        };

        public static readonly List<string> InitUserSpeciaAuthObject = new List<string>(){
            typeof(User).Name,
            typeof(Role).Name,
            typeof(AuthObject).Name,
            typeof(UserRoleRelated).Name,
            typeof(AuthObjectRoleRelated).Name,
        };
    }
}